package com.aqiang.day0528_shop

import android.content.Context
import com.aqiang.day0528_shop.user.entity.DaoMaster
import com.aqiang.day0528_shop.user.entity.DaoSession
import com.aqiang.lib_core.BaseApplication
import com.tencent.smtt.sdk.QbSdk

class ShopApplication :BaseApplication() {

    companion object {
        lateinit var daoSession: DaoSession
    }

    override fun onCreate() {
        super.onCreate()
        QbSdk.initX5Environment(this,null)
        val openHelper = DaoMaster.DevOpenHelper(this, "user.db")
        daoSession = DaoMaster(openHelper.writableDatabase).newSession()
    }

}